package com.fafu;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = {"com.fafu.service","com.fafu","util"})
@EnableCaching
@EnableAutoConfiguration
@EnableSwagger2
@MapperScan(basePackages = {"com.fafu.dao.mapper"})
@EnableWebSocketMessageBroker
public class ParentApplication {

    public static void main(String[] args) {

        SpringApplication.run(ParentApplication.class, args);
    }

}

